Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Encode urls for css background images #7906

Merged
merged 3 commits into from
Oct 18, 2024

Conversation

shefalijoshi
Copy link
Contributor

@shefalijoshi shefalijoshi commented Oct 18, 2024

Closes #7903

Describe your changes:

Add a utility to encode a url.
Use the encode url utility to encode all background images in css.

All Submissions:

  • Have you followed the guidelines in our Contributing document?
  • Have you checked to ensure there aren't other open Pull Requests for the same update/change?
  • Is this a notable change that will require a special callout in the release notes? For example, will this break compatibility with existing APIs or projects that consume these plugins?

Author Checklist

  • Changes address original issue?
  • Tests included and/or updated with changes?
  • Has this been smoke tested?
  • Have you associated this PR with a type: label? Note: this is not necessarily the same as the original issue.
  • Have you associated a milestone with this PR? Note: leave blank if unsure.
  • Testing instructions included in associated issue OR is this a dependency/testcase change?

Reviewer Checklist

  • Changes appear to address issue?
  • Reviewer has tested changes by following the provided instructions?
  • Changes appear not to be breaking changes?
  • Appropriate automated tests included?
  • Code style and in-line documentation are appropriate?

Use the encode urls utility to encode all background images in css
@shefalijoshi shefalijoshi added this to the Build 9 RC11 milestone Oct 18, 2024
@shefalijoshi shefalijoshi requested a review from akhenry October 18, 2024 18:24
Copy link

codecov bot commented Oct 18, 2024

Codecov Report

Attention: Patch coverage is 42.85714% with 4 lines in your changes missing coverage. Please review.

Project coverage is 57.44%. Comparing base (078cd34) to head (fb2d6f4).
Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
src/plugins/displayLayout/components/ImageView.vue 0.00% 2 Missing ⚠️
src/plugins/imagery/components/ImageThumbnail.vue 0.00% 0 Missing and 1 partial ⚠️
src/ui/layout/AppLogo.vue 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #7906      +/-   ##
==========================================
+ Coverage   56.91%   57.44%   +0.53%     
==========================================
  Files         676      677       +1     
  Lines       27370    27373       +3     
  Branches     2688     2689       +1     
==========================================
+ Hits        15577    15724     +147     
+ Misses      11453    11308     -145     
- Partials      340      341       +1     
Flag Coverage Δ
e2e-ci 62.48% <100.00%> (+0.63%) ⬆️
e2e-full 41.76% <0.00%> (+18.30%) ⬆️
unit 49.28% <42.85%> (-0.02%) ⬇️
Files with missing lines Coverage Δ
...ins/condition/components/inspector/StyleEditor.vue 53.57% <100.00%> (+1.71%) ⬆️
src/plugins/imagery/components/ImageryView.vue 41.99% <100.00%> (ø)
src/utils/encoding.js 100.00% <100.00%> (ø)
src/plugins/imagery/components/ImageThumbnail.vue 17.94% <0.00%> (-0.48%) ⬇️
src/ui/layout/AppLogo.vue 16.66% <0.00%> (ø)
src/plugins/displayLayout/components/ImageView.vue 0.00% <0.00%> (ø)

... and 22 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 078cd34...fb2d6f4. Read the comment docs.


await expect(page.getByLabel('Image Wrapper')).toBeVisible();
});
test.fixme('Can provide a custom image with spaces in name', async ({ page }) => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will fix on otherside

@unlikelyzero unlikelyzero added the pr:e2e:couchdb npm run test:e2e:couchdb label Oct 18, 2024
@unlikelyzero unlikelyzero enabled auto-merge (squash) October 18, 2024 19:44
@github-actions github-actions bot removed the pr:e2e:couchdb npm run test:e2e:couchdb label Oct 18, 2024
@unlikelyzero unlikelyzero merged commit 057a5f9 into master Oct 18, 2024
26 checks passed
@unlikelyzero unlikelyzero deleted the encode-css-background-image-urls branch October 18, 2024 19:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

urls used in css background images should be encoded
2 participants